package com.yfl.tingyu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class IndexController {

    @RequestMapping("/index")
    public  String index(){


        return "index";
    }
    @RequestMapping("/logout")
    public  String loguot(HttpSession session){

        session.invalidate();

        return "redirect:/login.jsp";
    }
}
